import java.util.*;

public class Test5 {
    public static void main(String[] args) throws ClassNotFoundException {

      ThreadLocal<Integer> threadLocal  = ThreadLocal.withInitial(()->10);

        System.out.println(threadLocal.get());
        Thread thread = new Thread(()->{

            Integer a = threadLocal.get();
            System.out.println(a);
            System.out.println(threadLocal.get());
        });
        thread.start();
        HashSet<Integer> map = new HashSet<>();
     TreeSet<Integer> set  = new TreeSet<>();
}
    }
